export default {
    data() {
      return {
        paging: {
           tableData: [{
            date: '2016-05-02',
            name: '王小虎',
            address: '上海市普陀区金沙江路 1518 弄'
          }, {
            date: '2016-05-04',
            name: '王小虎',
            address: '上海市普陀区金沙江路 1517 弄'
          }, {
            date: '2016-05-01',
            name: '王小虎',
            address: '上海市普陀区金沙江路 1519 弄'
          }, {
            date: '2016-05-03',
            name: '王小虎',
            address: '上海市普陀区金沙江路 1516 弄'
          }],
          pageIndex: 1,
          pageSize: 10,
          total: 100,
        },
      };
    },
    methods: {
      handleSizeChange(val) {
        this.paging.pageIndex = 1;
        this.paging.pageSize = val;
      },
      handleCurrentChange(val) {
        console.log(val)
        this.paging.pageIndex = val;
        this.getData()
      },
      getData(){
        this.paging.tableData= [{
            date: '2016-05-02',
            name: '王小虎',
            address: '上海市普陀区金沙江路 1518 弄'
          }]
      }
    },
  };

  